package yui.comn.mybatisx.core.conditions.update;

import java.io.Serializable;

public interface Update<Children, R> extends Serializable {
    default Children set(R column, Object val) {
        return this.set(true, column, val);
    }

    default Children set(boolean condition, R column, Object val) {
        return this.set(condition, column, val, (String)null);
    }

    default Children set(R column, Object val, String mapping) {
        return this.set(true, column, val, mapping);
    }

    Children set(boolean condition, R column, Object val, String mapping);

    default Children setSql(String sql) {
        return this.setSql(true, sql);
    }

    Children setSql(boolean condition, String sql);

    String getSqlSet();
}